using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WPCoco.Tasks;

namespace WPCoco
{
    /// <summary>
    /// Allow to execute and attach task
    /// </summary>
    public interface ITaskScheduler
    {
        /// <summary>
        /// Run an specified task and set the target for it
        /// </summary>
        /// <param name="task">Task to run</param>
        void RunTask(Task task);

        /// <summary>
        /// Stop all task owned by this object
        /// </summary>
        void StopTasks();
    }
}
